
	var file_input_element = '<input type="file" name="">';
	
	var count = 3;

	function add_file_input(name, target) {
		$(this).removeAttr('onchange');
	    $per = $(this).parent();
		$(file_input_element).attr('old', 'false').attr('name', (name + "[" + count++ + "]")).attr('onchange', "add_file_input('" + name + "','" + target + "')").appendTo(target);
		$(this).attr(name, "new_input");
	}
